# ZoneAVR


ZoneAVR is a project to interface AVRs/Arduino to Zoneminder.




Camp A
================

Camp A, is code for an Arduino Uno, an ENC28J60 module, and a PIR
sensor. It listens for an IO high from the sensor, and sends a packet
to the ZMTrigger daemon when it is detected. NTP can be configured optionally
and the packets can be silent for a given time during the week (e.g. 9-5).


![alt text](./images/fritzing_zoneavr_camp_a.jpg)

More details for hookup can be found online (such as ethercard git). The ENC28J60 
hooks up to 3.3v and the SPI bus. Because this particular project uses
the Tuxgraphics TCP/IP stack, only an Arduino Uno can be used. Not Mega.

The PIR sensor typically plugs into 5V, Gnd, and a digital IO pin. On this
program, Digital IO pin 3 is used. Different PIR sensors have different pinouts.

Digital IO 2 is connected to the reset pin.

```
ENC28J60
VCC -   3.3V
GND -    GND
SCK - Pin 13
SO  - Pin 12
SI  - Pin 11
CS  - Pin 10
```


